import request from '@/utils/request'

// 添加
export function insertPmBus(pmBus) {
  return request({
    url: '/system/bus',
    method: 'post',
    data:pmBus
  })
}

//查询
export function pmBusList(pageNumber,pageSize) {
    return request({
        url: '/system/bus/list'+`?pageNumber=${pageNumber}&pageSize=${pageSize}`,
        method: 'get',
    })
  }


//删除
export function deletePmBus(id) {
    return request({
        url: `/system/bus/${id}`,
        method:'delete'
    })
}

//更新
export function updatePmBusApi(pmBus) {
    return request({
        url: `/system/bus`,
        method:'put',
        data:pmBus
    })
}